package cn.wolfcode.utils;

import java.util.Calendar;
import java.util.Date;

/**
 * @author 杨兴健
 * @Date 2020/7/24 22:25
 */
public class DateUtil {
    public static Date getEndTime(Date date) {
        if (date == null) {
            return null;
        }
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.set(Calendar.HOUR, 23);
        calendar.set(Calendar.MINUTE, 59);
        calendar.set(Calendar.SECOND, 59);
        return calendar.getTime();
    }

}
